import request from '@/utils/request'

// 登录api
export const sysLogin = (data) => {
  return request({
    url: '/sys/login',
    method: 'post',
    data,
    noToken: true
  })
}

// 获取用户信息
export const sysProfile = () => {
  return request({
    url: '/sys/profile',
    method: 'post'
  })
}
// 获取用户其它信息，包括用户头像等
export const sysUser = (id) => {
  return request({
    url: `/sys/user/${id}`
  })
}
